<template>
  <div class="model">
    <div class="bg-shade" @click="hide()"></div>
    <div class="" style="width: 500px;height: auto;">
      <slot></slot>
    </div>
  </div>
</template>

<script>
  export default {
    name: "PopModel",
    props:[],
    methods: {
      hide() {

      }
    },
    created() {
      console.log(this)
    }
  }
</script>

<style lang="scss" scoped>
  .model{
    position: absolute;
    top: -60px;
    right: 0;
    bottom: 0;
    left: -200px;
    z-index: 9999;
  }
  .bg-shade {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 19891033;
    background-color: rgb(0, 0, 0);
    opacity: 0.3;
  }
  .layui-layer-page {
    z-index: 19891034;
    width: 700px;
    height: 500px;
    -webkit-transform: translate(0, -50%);
    -ms-transform: translate(0, -50%);
    -o-transform: translate(0, -50%);
    transform: translate(0, -50%);
    position: absolute;
    margin: 10px auto;
    left: 0;
    right: 0;
    top: 50%;
  }
  .layui-layer {
    -webkit-overflow-scrolling: touch;
    top: 150px;
    left: 0;
    margin: 0;
    padding: 0;
    background-color: #fff;
    -webkit-background-clip: content;
    border-radius: 2px;
    box-shadow: 1px 1px 50px rgba(0, 0, 0, .3);
  }
</style>
